package com.qust;

import com.qust.encryptionAndDecryption.KeyPair;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;

public class Main {

    public static void main(String[] args) throws MalformedURLException, ClassNotFoundException, IllegalAccessException, InstantiationException {
        KeyPair keyPair = KeyPair.generateKeyPair(SM2.class, "fan");
        SM2 sm2 = new SM2();
        sm2.loadKeyPair(keyPair);
        System.out.println(sm2.encryption("a"));
    }
}